package us.k5rud.template;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

public class Template extends Activity {

	TemplateSurfaceView mTemplateView;
	private static final String TAG = "Template";
	// -------------------------------------------------------------------------------------------------------
	public Template() {
		Log.v(TAG, "Template start");
		Log.v(TAG, "Template done");
	}
	// -------------------------------------------------------------------------------------------------------
	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		Log.v(TAG, "onCreate");

		setContentView(R.layout.main);
		mTemplateView = (TemplateSurfaceView) this.findViewById(R.id.templateView);

		Log.v(TAG, "onCreate done");
	}
	// -----------------------------------------------------------------------------------------------------------------
	@Override
	protected void onDestroy() {
		super.onDestroy();
		Log.v(TAG, "onDestroy start");
		Log.v(TAG, "onDestroy done");
	}
	// -----------------------------------------------------------------------------------------------------------------
	@Override
	protected void onPause() {
		super.onPause();
		Log.v(TAG, "onPause start");
		mTemplateView.doPause();
		Log.v(TAG, "onPause done");
	}
	// -----------------------------------------------------------------------------------------------------------------
	@Override
	protected void onRestart() {
		super.onRestart();
		Log.v(TAG, "onRestart start");
		Log.v(TAG, "onRestart done");
	}
	// -----------------------------------------------------------------------------------------------------------------
	@Override
	protected void onResume() {
		super.onResume();
		Log.v(TAG, "onResume start");
		mTemplateView.doResume();
		Log.v(TAG, "onResume done");
	}
	// -----------------------------------------------------------------------------------------------------------------
	@Override
	protected void onStart() {
		super.onStart();
		Log.v(TAG, "onStart start");
		mTemplateView.doStart();
		Log.v(TAG, "onStart done");
	}
	// -----------------------------------------------------------------------------------------------------------------
	@Override
	protected void onStop() {
		super.onStop();
		Log.v(TAG, "onStop start");
		mTemplateView.doStop();
		Log.v(TAG, "onStop done");
	}
}